<?php
//XXX: move icons path to config file
$query = $data['metadata']['query'];
?>
<p id="save_as">

<strong><small>VIEW:</small></strong>
	<?=anchor($unit_controller.'/save_as/csv/view/'.$this->common->create_uri_query_part($query), '<img src="'.base_url().'/images/icons/fileicons/csv.png" title="save as CSV" alt="CSV" />')?>
	<?=anchor($unit_controller.'/save_as/pdf/view/'.$this->common->create_uri_query_part($query), '<img src="'.base_url().'/images/icons/fileicons/pdf.png" title="save as PDF" alt="PDF" />')?>
	<?=anchor_popup($unit_controller.'/save_as/xml/view/'.$this->common->create_uri_query_part($query), '<img src="'.base_url().'/images/icons/fileicons/xml.png" title="save as XML" alt="XML" />')?>	
	<?=anchor_popup($unit_controller.'/save_as/html/view/'.$this->common->create_uri_query_part($query), '<img src="'.base_url().'/images/icons/fileicons/html.png" title="save as HTML" alt="HTML" />')?>

<?=_WIDE_SEP?>
	
<strong><small>FULL:</small></strong>
	<?=anchor($unit_controller.'/save_as/csv/full', '<img src="'.base_url().'/images/icons/fileicons/csv.png" title="save as CSV" alt="CSV" />')?>
	<?=anchor($unit_controller.'/save_as/pdf/full', '<img src="'.base_url().'/images/icons/fileicons/pdf.png" title="save as PDF" alt="PDF" />')?>
	<?=anchor_popup($unit_controller.'/save_as/xml/full', '<img src="'.base_url().'/images/icons/fileicons/xml.png" title="save as XML" alt="XML" />')?>	
	<?=anchor_popup($unit_controller.'/save_as/html/full', '<img src="'.base_url().'/images/icons/fileicons/html.png" title="save as HTML" alt="HTML" />')?>
	<?=anchor($unit_controller.'/import', '<img src="'.base_url().'/images/icons/fugue/database-import.png" title="import database" alt="import" />')?>
	<?=anchor($unit_controller.'/export', '<img src="'.base_url().'/images/icons/fugue/database-export.png" title="export database structure" alt="export" />')?>

</p>